package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dept")
public class SysDept extends Model<SysDept> {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(value = "dept_id", type = IdType.ASSIGN_UUID)
    private String deptId;

    /**
     * 所属企业
     */
    private String companyId;

    /**
     * 父部门id
     */
    private String parentId;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 部门编号
     */
    private String deptNum;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 负责人员工id
     */
    private String leaderEmployeeId;

    /**
     * 部门状态（0停用 1正常）
     */
    private Integer deptStatus;

    /**
     * 删除标志（0代表删除 1代表存在）
     */
    private Integer delFlag;

    /**
     * 创建者员工id
     */
    private String createBy;

    /**
     * 部门描述
     */
    private String deptDesc;

    /**
     * 更新者员工id
     */
    private String updateBy;

    /**
     * 创建时间 单位ms
     */
    private Long createTime;

    /**
     * 更新时间
     */
    private Long updateTime;


    public static final String DEPT_ID = "dept_id";

    public static final String COMPANY_ID = "company_id";

    public static final String PARENT_ID = "parent_id";

    public static final String ANCESTORS = "ancestors";

    public static final String DEPT_NAME = "dept_name";

    public static final String DEPT_NUM = "dept_num";

    public static final String ORDER_NUM = "order_num";

    public static final String LEADER_EMPLOYEE_ID = "leader_employee_id";

    public static final String DEPT_STATUS = "dept_status";

    public static final String DEL_FLAG = "del_flag";

    public static final String CREATE_BY = "create_by";

    public static final String DEPT_DESC = "dept_desc";

    public static final String UPDATE_BY = "update_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";


}
